<%@ page language="java" import="java.util.*,StudentScore.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学生登录成功</title>
</head>
<body style="text-align:center;">
<form name="postForm" action="MenuStudent.jsp" method="post">
<%
    	StudentDao sdao = new StudentDaoJDBC();
    	String no = request.getParameter("stuno");
    	int stuno = Integer.parseInt(no);
    	String password = request.getParameter("password");
    	if(sdao.login(stuno,password)!=1){
    		response.sendRedirect("StudentLogin.jsp");
  
		}
    	else
    	{
    		
 %>
 <td>学号：<input type="text" id="a" name="stuno" value=<%=no%>></td>
    		<p>登陆成功！</p>
    	<input type="submit" value="Menu" />
    		<% 
    		}
			%>
</form>
</body>
</html>